package cn.Mmovie.bean;

public class Ticket {
    private int id;
    private Schedule schedule;
    private int seatNumber;
    private double price;
    private Movie movie;

    public Ticket() {
    }

    public Ticket(int id, Schedule schedule, int seatNumber, double price, Movie movie) {
        this.id = id;
        this.schedule = schedule;
        this.seatNumber = seatNumber;
        this.price = price;
        this.movie = movie;
    }

    /**
     * 获取
     * @return id
     */
    public int getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * 获取
     * @return schedule
     */
    public Schedule getSchedule() {
        return schedule;
    }

    /**
     * 设置
     * @param schedule
     */
    public void setSchedule(Schedule schedule) {
        this.schedule = schedule;
    }

    /**
     * 获取
     * @return seatNumber
     */
    public int getSeatNumber() {
        return seatNumber;
    }

    /**
     * 设置
     * @param seatNumber
     */
    public void setSeatNumber(int seatNumber) {
        this.seatNumber = seatNumber;
    }

    /**
     * 获取
     * @return price
     */
    public double getPrice() {
        return price;
    }

    /**
     * 设置
     * @param price
     */
    public void setPrice(double price) {
        this.price = price;
    }

    /**
     * 获取
     * @return movie
     */
    public Movie getMovie() {
        return movie;
    }

    /**
     * 设置
     * @param movie
     */
    public void setMovie(Movie movie) {
        this.movie = movie;
    }

    public String toString() {
        return "Ticket{id = " + id + ", schedule = " + schedule + ", seatNumber = " + seatNumber + ", price = " + price + ", movie = " + movie + "}";
    }
}
